#include <iostream>
#include <cassert>
#include <sys/types.h>
#include <signal.h>
#include <cerrno>
#include <cstring>

using namespace std;

int main(int argc, char *argv[])
{
    // argv[0] ./mykill
    // argv[1] signal
    // argv[2] pid
    assert(argc == 3);

    int signo = atoi(argv[1]);
    int pid = atoi(argv[2]);

    int ret = kill(pid,signo);
    if(ret < 0)
    {
        perror("kill fail");
        return 1;
    }

    return 0;
}